package org.jrazdacha.bittorrent.modelling.core;

import java.util.BitSet;


/**
 * Interface for communication with other peers
 * 
 * @author nep
 *
 */
public interface Communicator {

	/**
	 * Sends initial handshake in bittorrent seeding
	 * 
	 * @param remotePeerId
	 */
	void sendHandShakeTo(Id remotePeerId);

	/**
	 * Sends bitfield to remote peer
	 * 
	 * @param bitfield sends bitfield to peer with id remotePeerId 
	 * @param remotePeerId id of remoterPeerId
	 */
	void sendBitfieldTo(BitSet bitfield, Id remotePeerId);
	
}
